<?php

$url = "http://www.cowa-japan.co.jp/apis/?token=EB818C5C-63DE-41E4-8D9D-8790F3D6C75D&order=getSoldList&data={\%22type\%22:\%22json\%22,\%22page\%22:\%222\%22}";
$content = file_get_contents($url);
# 带有BOM标签的文档，需要删除 标头
if(preg_match('/^\xEF\xBB\xBF/',$content))
{
     $content=substr($content,3);
}
$arr = json_decode($content,true);

foreach ($arr as $val){
	
	if($val["adminId"] == 3){
	    echo $val["date"];
	    echo " / ";
	    echo $val["auctionId"];
	    echo " / ";
	    $b = explode('[',$val["bank"]);
	    echo $b[0];
	    echo "<br/>";
	    echo (int)$val["prodPrice"]."円";
	    echo "<br/>";
	    echo (int)$val["fee"]."円";
	    echo " / 実質送料：";
	    echo (int)$val["realFee"]."円";
	    echo "<br/>";
	    echo $val["addrZip"];
	    echo $val["addrAddress"];
	    echo "<br/>";
	    echo $val["addrName"];
	    echo " TEL:";
	    echo $val["addrTel"];
	    echo "<br/>発送番号";
	    echo $val["sendno"];
	    echo "<br/>";
	    echo "-----------------------------------------------";
	    echo "<br/>";
    }
}
?>